Scripting > CxHmiFms > CxFmsReportCtrl Object > CxFmsReportCtrl Example

CxFmsReportCtrl Example

Use the CxFmsReportCtrl object to display and manipulate an ActiveX CygNet FMS Report Control in a CygNet Studio screen environment.

CygNet FMS Report Control

To see an example FMS Report control implemented in a pre-designed screen, open the FMS Report Ctrl.csf file in the CygNet\Clients\CStudio\Screens\Examples folder.

CygNet Studio Screen Script: FMS Report Ctrl.csf

Sub btnApply_EventClick()

Dim This : Set This = btnApply

FmsReport.SessionNodeTag = editSessionNode.Text

FmsReport.PITDateTime = editPIT.Text

FmsReport.UsePIT = checkUsePIT.Check

FmsReport.Apply True

End Sub

 

Sub btnCancel_EventClick()

Dim This : Set This = btnCancel

FmsReport.Cancel

End Sub

 

Sub checkUsePIT_EventChange()

Dim This : Set This = checkUsePIT

FmsReport.UsePIT = this.Check

editPIT.Enable this.Check

End Sub

 

Sub checkUseSessionNode_EventChange()

Dim This : Set This = checkUseSessionNode

FmsReport.checkUseSessionNode = this.Check

End Sub

 

Sub TheView_EventInitialize()

Dim This : Set This = TheView

checkUseSessionNode.Check = FmsReport.UseSessionNode

editSessionNode.Text = FmsReport.SessionNodeTag

checkUsePIT.Check = FmsReport.UsePIT

editPIT.Text = FmsReport.PITDateTime

editPIT.Enable = FmsReport.UsePIT

End Sub

Back to top

Let us know how we can improve this topic.

CygNet at weatherford.com

© 2020 Weatherford. All rights reserved.